package com.hurt.competition.judge.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hurt.competition.admin.model.Competition;
import com.hurt.competition.common.vo.PageResult;
import com.hurt.competition.judge.dto.CompetitionJudgeListRes;
import com.hurt.competition.judge.dto.CompetitionJudgeReq;
import com.hurt.competition.judge.model.CompetitionJudge;
import com.hurt.competition.player.dto.CompetitionPlayerReq;

public interface CompetitionJudgeService extends IService<CompetitionJudge> {
    /**
     * 申请
     * @param competitionJudge
     */
    void apply(CompetitionJudge competitionJudge);

    /**
     * 查询该比赛的评委列表
     * @param req
     * @return
     */
    PageResult<CompetitionJudgeListRes> queryList(CompetitionJudgeReq req);

    /**
     * 查询列表
     * @param req
     * @return
     */
    PageResult<Competition> page(CompetitionJudgeReq req);

    /**
     * 审批
     * @param competitionJudge
     */
    void audit(CompetitionJudge competitionJudge);

    /**
     * 查询是否为生效的评委
     * @param competitionJudge
     * @return
     */
    Boolean checkEnableJudge(CompetitionJudge competitionJudge);
}
